package com.su.controller;

import com.rabbitmq.client.Channel;
import com.su.service.revicemqservice;
import org.springframework.amqp.core.Message;
import org.springframework.amqp.support.AmqpHeaders;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.messaging.handler.annotation.Header;
import org.springframework.messaging.handler.annotation.Payload;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class recivecontroller {

    @Autowired
    private revicemqservice revicemqservice;


    @GetMapping("/recivemq")
    public String recivemq(Message msg){
        String recivemq = revicemqservice.recivemq(msg);
        return recivemq;
    }

}
